cmake_minimum_required(VERSION 3.12)
project(LKH3)

set(CMAKE_CXX_STANDARD 11)
include_directories(INCLUDE)

file(GLOB src "*.c")
file(GLOB inc "INCLUDE/*.h")
set_source_files_properties(${src} PROPERTIES LANGUAGE CXX)

add_executable(${PROJECT_NAME} ${src} ${inc})
IF(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
    TARGET_LINK_LIBRARIES(${PROJECT_NAME} m)
ENDIF()